home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 63 6f | 6d 70 61 73 73 2d 64 61 |Path: co|mpass-da|
|00000010| 2e 63 6f 6d 21 6e 65 77 | 73 0a 46 72 6f 6d 3a 20 |.com!new|s.From: |
|00000020| 58 61 76 69 65 72 20 48 | 75 65 74 20 3c 68 75 65 |Xavier H|uet <hue|
|00000030| 74 40 63 6f 6d 70 61 73 | 73 2d 64 61 2e 63 6f 6d |t@compas|s-da.com|
|00000040| 3e 0a 4e 65 77 73 67 72 | 6f 75 70 73 3a 20 63 6f |>.Newsgr|oups: co|
|00000050| 6d 70 2e 6c 61 6e 67 2e | 63 2b 2b 0a 53 75 62 6a |mp.lang.|c++.Subj|
|00000060| 65 63 74 3a 20 52 65 3a | 20 70 72 6f 74 65 63 74 |ect: Re:| protect|
|00000070| 65 64 20 61 63 63 65 73 | 73 20 74 6f 20 67 72 61 |ed acces|s to gra|
|00000080| 6e 64 70 61 72 65 6e 74 | 20 63 6c 61 73 73 0a 44 |ndparent| class.D|
|00000090| 61 74 65 3a 20 54 68 75 | 2c 20 30 37 20 4d 61 72 |ate: Thu|, 07 Mar|
|000000a0| 20 31 39 39 36 20 31 36 | 3a 32 38 3a 33 32 20 2d | 1996 16|:28:32 -|
|000000b0| 30 38 30 30 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f |0800.Org|anizatio|
|000000c0| 6e 3a 20 43 4f 4d 50 41 | 53 53 20 44 65 73 69 67 |n: COMPA|SS Desig|
|000000d0| 6e 20 41 75 74 6f 6d 61 | 74 69 6f 6e 0a 4d 65 73 |n Automa|tion.Mes|
|000000e0| 73 61 67 65 2d 49 44 3a | 20 3c 33 31 33 46 37 46 |sage-ID:| <313F7F|
|000000f0| 33 30 2e 37 38 43 33 40 | 63 6f 6d 70 61 73 73 2d |30.78C3@|compass-|
|00000100| 64 61 2e 63 6f 6d 3e 0a | 52 65 66 65 72 65 6e 63 |da.com>.|Referenc|
|00000110| 65 73 3a 20 3c 44 6e 71 | 73 74 70 2e 4a 6f 39 40 |es: <Dnq|stp.Jo9@|
|00000120| 75 6e 73 2e 62 72 69 73 | 2e 61 63 2e 75 6b 3e 20 |uns.bris|.ac.uk> |
|00000130| 3c 33 31 33 62 32 62 62 | 35 2e 32 34 31 33 31 32 |<313b2bb|5.241312|
|00000140| 30 35 35 40 6e 65 77 73 | 2e 70 72 69 6d 65 6e 65 |055@news|.primene|
|00000150| 74 2e 63 6f 6d 3e 0a 4e | 4e 54 50 2d 50 6f 73 74 |t.com>.N|NTP-Post|
|00000160| 69 6e 67 2d 48 6f 73 74 | 3a 20 6d 79 6e 61 68 2e |ing-Host|: mynah.|
|00000170| 73 61 6e 6a 6f 73 65 2e | 63 6f 6d 70 61 73 73 2d |sanjose.|compass-|
|00000180| 64 61 2e 63 6f 6d 0a 4d | 69 6d 65 2d 56 65 72 73 |da.com.M|ime-Vers|
|00000190| 69 6f 6e 3a 20 31 2e 30 | 0a 43 6f 6e 74 65 6e 74 |ion: 1.0|.Content|
|000001a0| 2d 54 79 70 65 3a 20 74 | 65 78 74 2f 70 6c 61 69 |-Type: t|ext/plai|
|000001b0| 6e 3b 20 63 68 61 72 73 | 65 74 3d 75 73 2d 61 73 |n; chars|et=us-as|
|000001c0| 63 69 69 0a 43 6f 6e 74 | 65 6e 74 2d 54 72 61 6e |cii.Cont|ent-Tran|
|000001d0| 73 66 65 72 2d 45 6e 63 | 6f 64 69 6e 67 3a 20 37 |sfer-Enc|oding: 7|
|000001e0| 62 69 74 0a 58 2d 4d 61 | 69 6c 65 72 3a 20 4d 6f |bit.X-Ma|iler: Mo|
|000001f0| 7a 69 6c 6c 61 20 32 2e | 30 20 28 58 31 31 3b 20 |zilla 2.|0 (X11; |
|00000200| 55 3b 20 48 50 2d 55 58 | 20 41 2e 30 39 2e 30 35 |U; HP-UX| A.09.05|
|00000210| 20 39 30 30 30 2f 37 31 | 35 29 0a 54 6f 3a 20 47 | 9000/71|5).To: G|
|00000220| 61 72 79 20 45 64 73 74 | 72 6f 6d 20 3c 67 62 65 |ary Edst|rom <gbe|
|00000230| 40 70 72 69 6d 65 6e 65 | 74 2e 63 6f 6d 3e 0a 0a |@primene|t.com>..|
|00000240| 47 61 72 79 20 45 64 73 | 74 72 6f 6d 20 77 72 6f |Gary Eds|trom wro|
|00000250| 74 65 3a 0a 3e 20 0a 3e | 20 49 6e 68 65 72 69 74 |te:.> .>| Inherit|
|00000260| 61 6e 63 65 20 63 61 6e | 20 62 65 20 6f 6e 6c 79 |ance can| be only|
|00000270| 20 22 70 75 62 6c 69 63 | 22 20 6f 72 20 22 70 72 | "public|" or "pr|
|00000280| 69 76 61 74 65 22 2e 0a | 3e 20 4e 4f 54 20 22 70 |ivate"..|> NOT "p|
|00000290| 72 6f 74 65 63 74 65 64 | 22 0a 3e 20 0a 0a 46 61 |rotected|".> ..Fa|
|000002a0| 6c 73 65 2c 20 74 68 65 | 20 69 6e 68 65 72 69 74 |lse, the| inherit|
|000002b0| 61 6e 63 65 20 63 61 6e | 20 62 65 20 70 75 62 6c |ance can| be publ|
|000002c0| 69 63 2c 20 70 72 6f 74 | 65 63 74 65 64 20 61 6e |ic, prot|ected an|
|000002d0| 64 20 70 72 69 76 61 74 | 65 2e 0a 09 31 29 20 49 |d privat|e...1) I|
|000002e0| 6e 68 65 72 69 74 61 6e | 63 65 20 70 75 62 6c 69 |nheritan|ce publi|
|000002f0| 63 20 3a 0a 09 20 20 70 | 75 62 6c 69 63 20 6d 65 |c :.. p|ublic me|
|00000300| 6d 62 65 72 73 20 6f 66 | 20 62 61 73 65 20 63 6c |mbers of| base cl|
|00000310| 61 73 73 20 72 65 6d 61 | 69 6e 20 70 75 62 6c 69 |ass rema|in publi|
|00000320| 63 20 69 6e 20 64 65 72 | 69 76 65 64 20 63 6c 61 |c in der|ived cla|
|00000330| 73 73 3b 0a 09 20 20 70 | 72 6f 74 65 63 74 65 64 |ss;.. p|rotected|
|00000340| 20 6d 65 6d 62 65 72 73 | 20 6f 66 20 62 61 73 65 | members| of base|
|00000350| 20 63 6c 61 73 73 20 72 | 65 6d 61 69 6e 20 70 72 | class r|emain pr|
|00000360| 6f 74 65 63 74 65 64 20 | 69 6e 20 64 65 72 69 76 |otected |in deriv|
|00000370| 65 64 20 63 6c 61 73 73 | 3b 0a 0a 09 32 29 20 49 |ed class|;...2) I|
|00000380| 6e 68 65 72 69 74 61 6e | 63 65 20 70 72 6f 74 65 |nheritan|ce prote|
|00000390| 63 74 65 64 20 3a 0a 09 | 20 20 70 75 62 6c 69 63 |cted :..| public|
|000003a0| 20 6d 65 6d 62 65 72 73 | 20 6f 66 20 62 61 73 65 | members| of base|
|000003b0| 20 63 6c 61 73 73 20 62 | 65 63 6f 6d 65 20 70 72 | class b|ecome pr|
|000003c0| 6f 74 65 63 74 65 64 20 | 69 6e 20 64 65 72 69 76 |otected |in deriv|
|000003d0| 65 64 20 63 6c 61 73 73 | 3b 0a 09 20 20 70 72 6f |ed class|;.. pro|
|000003e0| 74 65 63 74 65 64 20 6d | 65 6d 62 65 72 73 20 6f |tected m|embers o|
|000003f0| 66 20 62 61 73 65 20 63 | 6c 61 73 73 20 72 65 6d |f base c|lass rem|
|00000400| 61 69 6e 20 70 72 6f 74 | 65 63 74 65 64 20 69 6e |ain prot|ected in|
|00000410| 20 64 65 72 69 76 65 64 | 20 63 6c 61 73 73 3b 0a | derived| class;.|
|00000420| 0a 09 33 29 20 49 6e 68 | 65 72 69 74 61 6e 63 65 |..3) Inh|eritance|
|00000430| 20 70 72 69 76 61 74 65 | 20 3a 0a 20 09 20 20 70 | private| :. . p|
|00000440| 75 62 6c 69 63 20 6d 65 | 6d 62 65 72 73 20 6f 66 |ublic me|mbers of|
|00000450| 20 62 61 73 65 20 63 6c | 61 73 73 20 62 65 63 6f | base cl|ass beco|
|00000460| 6d 65 20 70 72 69 76 61 | 74 65 20 69 6e 20 64 65 |me priva|te in de|
|00000470| 72 69 76 65 64 20 63 6c | 61 73 73 3b 0a 09 20 20 |rived cl|ass;.. |
|00000480| 70 72 6f 74 65 63 74 65 | 64 20 6d 65 6d 62 65 72 |protecte|d member|
|00000490| 73 20 6f 66 20 62 61 73 | 65 20 63 6c 61 73 73 20 |s of bas|e class |
|000004a0| 72 65 6d 61 69 6e 20 70 | 72 69 76 61 74 65 20 69 |remain p|rivate i|
|000004b0| 6e 20 64 65 72 69 76 65 | 64 20 63 6c 61 73 73 3b |n derive|d class;|
|000004c0| 0a 0a 42 75 74 20 49 20 | 63 6f 6d 65 20 62 61 63 |..But I |come bac|
|000004d0| 6b 20 74 6f 20 4e 61 74 | 68 61 6e 27 73 20 70 72 |k to Nat|han's pr|
|000004e0| 6f 62 6c 65 6d 20 3a 0a | 3e 63 6c 61 73 73 20 41 |oblem :.|>class A|
|000004f0| 20 7b 0a 3e 70 72 6f 74 | 65 63 74 65 64 3a 0a 3e | {.>prot|ected:.>|
|00000500| 20 20 69 6e 74 20 6d 65 | 6d 62 65 72 3b 0a 3e 20 | int me|mber;.> |
|00000510| 20 76 6f 69 64 20 66 75 | 6e 63 28 41 29 7b 7d 3b | void fu|nc(A){};|
|00000520| 0a 3e 7d 3b 0a 3e 0a 3e | 63 6c 61 73 73 20 42 20 |.>};.>.>|class B |
|00000530| 3a 20 70 72 6f 74 65 63 | 74 65 64 20 41 20 7b 0a |: protec|ted A {.|
|00000540| 3e 70 72 6f 74 65 63 74 | 65 64 3a 0a 3e 20 20 76 |>protect|ed:.> v|
|00000550| 6f 69 64 20 66 75 6e 63 | 28 42 20 61 72 67 29 20 |oid func|(B arg) |
|00000560| 7b 0a 3e 20 20 20 20 41 | 3a 3a 66 75 6e 63 28 41 |{.> A|::func(A|
|00000570| 28 61 72 67 29 29 3b 20 | 20 20 20 20 20 2f 2f 20 |(arg)); | // |
|00000580| 6f 6b 0a 3e 20 20 7d 3b | 0a 3e 7d 3b 0a 3e 0a 3e |ok.> };|.>};.>.>|
|00000590| 63 6c 61 73 73 20 43 20 | 3a 20 70 72 6f 74 65 63 |class C |: protec|
|000005a0| 74 65 64 20 42 20 7b 0a | 3e 70 72 6f 74 65 63 74 |ted B {.|>protect|
|000005b0| 65 64 3a 0a 3e 20 20 76 | 6f 69 64 20 66 75 6e 63 |ed:.> v|oid func|
|000005c0| 28 43 20 61 72 67 29 20 | 7b 0a 3e 20 20 20 20 41 |(C arg) |{.> A|
|000005d0| 3a 3a 66 75 6e 63 28 41 | 28 61 72 67 29 29 3b 20 |::func(A|(arg)); |
|000005e0| 20 20 20 20 20 2f 2f 20 | 66 61 69 6c 65 64 0a 3e | // |failed.>|
|000005f0| 20 20 7d 3b 0a 3e 7d 3b | 0a 0a 49 27 6d 20 6e 6f | };.>};|..I'm no|
|00000600| 74 20 73 75 72 65 20 62 | 75 74 20 49 20 74 68 69 |t sure b|ut I thi|
|00000610| 6e 6b 20 74 68 61 74 20 | 69 74 20 66 61 69 6c 65 |nk that |it faile|
|00000620| 64 20 62 65 63 61 75 73 | 65 20 69 6e 20 66 61 63 |d becaus|e in fac|
|00000630| 74 20 77 68 65 6e 20 79 | 6f 75 20 63 61 6c 6c 0a |t when y|ou call.|
|00000640| 41 3a 3a 66 75 6e 63 20 | 66 72 6f 6d 20 43 6c 61 |A::func |from Cla|
|00000650| 73 73 20 43 20 79 6f 75 | 20 63 61 6c 6c 20 61 20 |ss C you| call a |
|00000660| 70 72 6f 74 65 63 74 65 | 64 20 66 75 6e 63 74 69 |protecte|d functi|
|00000670| 6f 6e 20 62 75 74 20 74 | 68 69 73 20 66 75 6e 63 |on but t|his func|
|00000680| 69 6f 6e 20 69 73 0a 6f | 6e 6c 79 20 61 63 63 65 |ion is.o|nly acce|
|00000690| 73 73 69 62 6c 65 20 66 | 72 6f 6d 20 42 20 61 6e |ssible f|rom B an|
|000006a0| 64 20 6e 6f 74 20 66 72 | 6f 6d 20 43 20 28 6e 6f |d not fr|om C (no|
|000006b0| 72 6d 61 6c 20 6f 72 20 | 62 65 63 61 75 73 65 20 |rmal or |because |
|000006c0| 6f 76 65 72 6c 6f 61 64 | 69 6e 67 0a 66 75 6e 63 |overload|ing.func|
|000006d0| 74 69 6f 6e 20 3f 29 0a | 0a 54 6f 20 72 65 73 6f |tion ?).|.To reso|
|000006e0| 6c 76 65 20 79 6f 75 72 | 20 70 72 6f 62 6c 65 6d |lve your| problem|
|000006f0| 2c 20 79 6f 75 20 63 61 | 6e 20 63 61 6c 6c 20 42 |, you ca|n call B|
|00000700| 3a 3a 66 75 6e 63 20 69 | 6e 20 63 6c 61 73 73 20 |::func i|n class |
|00000710| 43 3a 0a 76 6f 69 64 20 | 66 75 6e 63 28 43 20 61 |C:.void |func(C a|
|00000720| 72 67 29 0a 7b 0a 20 20 | 42 3a 3a 66 75 6e 63 28 |rg).{. |B::func(|
|00000730| 42 28 61 72 67 29 29 3b | 0a 7d 0a 0a 2d 2d 2d 2d |B(arg));|.}..----|
|00000740| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000750| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 58 61 76 69 65 72 |--------|-.Xavier|
|00000760| 20 48 75 65 74 0a 53 6f | 66 74 77 61 72 65 20 45 | Huet.So|ftware E|
|00000770| 6e 67 69 6e 65 65 72 0a | 0a 43 4f 4d 50 41 53 53 |ngineer.|.COMPASS|
|00000780| 20 44 65 73 69 67 6e 20 | 41 75 74 6f 6d 61 74 69 | Design |Automati|
|00000790| 6f 6e 0a 31 38 36 35 20 | 4c 75 6e 64 79 20 41 76 |on.1865 |Lundy Av|
|000007a0| 65 6e 75 65 0a 53 61 6e | 20 4a 6f 73 65 2c 20 43 |enue.San| Jose, C|
|000007b0| 41 20 39 35 31 33 31 0a | 0a 65 2d 4d 61 69 6c 20 |A 95131.|.e-Mail |
|000007c0| 3a 20 68 75 65 74 40 63 | 6f 6d 70 61 73 73 2d 64 |: huet@c|ompass-d|
|000007d0| 61 2e 63 6f 6d 0a 50 68 | 2e 20 3a 20 28 34 30 38 |a.com.Ph|. : (408|
|000007e0| 29 34 33 33 2d 34 38 38 | 30 20 28 78 34 37 34 35 |)433-488|0 (x4745|
|000007f0| 33 29 0a 46 61 78 20 3a | 20 28 34 30 38 29 34 33 |3).Fax :| (408)43|
|00000800| 34 2d 37 39 38 31 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |4-7981.-|--------|
|00000810| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000820| 2d 2d 2d 2d 0a | |----. | |
+--------+-------------------------+-------------------------+--------+--------+